package com.action;

import java.util.List;

/**
 * Created by lirance on 16/4/13.
 */
public class getServiceCallsAction extends BaseAction{
    private List uservicecalls;
    private List wsservicecalls;
    private List servicecalls;

    public List getServicecalls() {
        return servicecalls;
    }

    public void setServicecalls(List servicecalls) {
        this.servicecalls = servicecalls;
    }

    private int uid1;
    private int wsid;

    public int getWsid() {
        return wsid;
    }

    public void setWsid(int wsid) {
        this.wsid = wsid;
    }

    public int getUid() {
        return uid1;
    }

    public void setUid(int uid) {
        this.uid1 = uid;
    }

    public List getUservicecalls() {
        return uservicecalls;
    }

    public void setUservicecalls(List uservicecalls) {
        this.uservicecalls = uservicecalls;
    }

    public List getWsservicecalls() {
        return wsservicecalls;
    }

    public void setWsservicecalls(List wsservicecalls) {
        this.wsservicecalls = wsservicecalls;
    }

    @Override
    public String execute() throws Exception {
        this.setUservicecalls(this.getAllService().getGetServiceCallsService().getEntitiesbyuID(uid1));
        this.setWsservicecalls(this.getAllService().getGetServiceCallsService().getEntitiesbywsID(wsid));
        this.setServicecalls(this.getAllService().getGetServiceCallsService().getEntitiesbyuwID(uid1,wsid));



        return SUCCESS;
    }
}
